package com.kylin.payment.api.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 订单支付请求
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年12月13日 19:52
 */
@Data
@NoArgsConstructor
@ApiModel(value = "订单支付请求")
public class PaymentReqDTO implements Serializable {

    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "支付金额(格式：xx.xx)")
    @Pattern(regexp = "[\\d]+\\.[\\d]{1,2}")
    private String amount;

    @ApiModelProperty(value = "支付类型")
    private Integer payType;
}
